<?include "_commonHeader.php"?>
<body <?=($this->headerFixTop ? 'style="padding-top: 65px;"': '')?>>
	<header>
		<div class="navbar <?=($this->headerFixTop ? 'navbar-fixed-top': '')?> navbar-inverse">
			<div class="navbar-inner pt5 pb5">
				<div class="container">
					<div class="nav-collapse collapse">
						<a class="brand" href="<?=Yii::app()->baseUrl?>" class="brand"><img src="<?=Yii::app()->asset->getBaseAsset()?>/images/logo_w.png" alt="<?=Yii::app()->name;?>" /></a>
						<ul class="nav">
							<li class=""><a href="index.php"><?=Yii::t('site', '首页')?></a></li>
							<li class=""><a href="<?=$this->createUrl('/album')?>"><?=Yii::t('site', '相册')?></a></li>
						</ul>
						<ul class="nav pull-right">
						<?if(!Yii::app()->user->isGuest):?>
							<?Yii::app()->clientScript->registerScriptFile('bootstrap-dropdown');?> 
							
							<li class="dropdown">
								<a class="dropdown-toggle" data-toggle="dropdown" href="#"><?=Yii::app()->user->name?><b class="caret"></b></a>
								<ul class="dropdown-menu">
			                        <li><a href="<?=$this->createUrl('/member/home')?>"><i class="icon-home"></i> 个人主页 </a></li>
			                        <li><a href="<?=$this->createUrl('/member/logout')?>"><i class="icon-off"></i> 退出 </a></li>
		                        </ul>
							</li>
						<?else:?>
							<li><a href="<?=$this->createUrl('/member/login')?>">登录 </a></li>
							<li><a href="<?=$this->createUrl('/member/register')?>">注册 </a></li>
						<?endif;?> 
						</ul>
					</div>
				</div>
			</div>
		</div>
		<?if($this->breadcrumbs):?>
			<div class="container">
				<?php $this->widget('application.widgets.Breadcrumbs', array(
					'links' => $this->breadcrumbs,
				)); ?>
			</div>
		<?endif?>
	</header>
	<article>
		<?=$content?> 
	</article> 
<?include "_commonFooter.php"?> 
</body>
</html>
